package cz.none.bezbarier.web.tl;

import java.util.HashSet;
import java.util.Set;

import org.thymeleaf.dialect.AbstractDialect;
import org.thymeleaf.processor.IProcessor;

import cz.none.bezbarier.web.tl.processor.InputPasswordProcessor;
import cz.none.bezbarier.web.tl.processor.InputTextProcessor;
import cz.none.bezbarier.web.tl.processor.SpringInputElement;

public class BootstrapSpringDialect extends AbstractDialect {

	@Override
	public String getPrefix() {
		String prefix = "bs";
		return prefix;
	}

	@Override
	public boolean isLenient() {
		return false;
	}

	@Override
	public Set<IProcessor> getProcessors() {
		final Set<IProcessor> processors = new HashSet<IProcessor>();
		processors.add(new InputTextProcessor());
		processors.add(new InputPasswordProcessor());
		processors.add(new SpringInputElement());
		return processors;
	}

}
